package com.yswy.domain.mapper.tf;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yswy.domain.entity.tf.TgDeduction;
import com.yswy.domain.entity.tf.TgMediaAccount;
import com.yswy.domain.vo.dto.BaseFilter;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface TgDeductionMapper extends BaseMapper<TgDeduction> {

    //获取所有TgDeduction
    Page<TgDeduction> pageTgDeduction(@Param("req") BaseFilter req,
                                            @Param("userId") Long userId,
                                            Page<BaseFilter> page);

    List<TgDeduction> listTgDeduction(@Param("userId") Long userId ,@Param("tgDeductionId") Long tgDeductionId);
}
